<?php

namespace Database\Factories;

use App\Models\TaskLevel;
use Illuminate\Database\Eloquent\Factories\Factory;

class TaskLevelFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = TaskLevel::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'task_name' => $this->faker->text(10),
            'task_type' => $this->faker->randomElement([
                '射击娱乐',
                '田径娱乐',
                '马拉松',
            ]),
            'limit_num' => $this->faker->numberBetween(1, 60),
            'is_show' => $this->faker->randomElement([1, 2]),
            'sort' => $this->faker->numberBetween(1, 99),
        ];
    }
}
